<#if parameters.validator??>
    <#assign bean = parameters.validator/>
    <#assign roleKey = bean.validatorValue/>
    <#if roleKey?exists>
        <#list roleKey?keys as key>
        data-rule-${key}="${roleKey[key]}"<#rt/>
            <#if bean.message?size gt key_index>
            data-msg-${key}="${bean.message[key_index]}"<#rt/>
            </#if>
        </#list>
    </#if>

</#if>